<script setup>
import { useRouter } from "vue-router"
const router = useRouter()
const back = () => router.push("/")
</script>

<template>
  <el-row>
    <el-col :span="24">
      <el-result icon="error" title="404提示" sub-title="你找的页面走丢了~">
        <template #extra>
          <el-button type="primary" @click="back">回到首页</el-button>
        </template>
      </el-result>
      <div class="img"></div>
    </el-col>
  </el-row>
</template>

<style scoped lang="scss">
.el-col {
  .img {
    height: 68vh;
    background: url(@/assets/404.jpg) no-repeat bottom content-box;
  }
}
@media screen and (max-width: 375px), screen and (max-width: 414px) {
  .el-col {
    .img {
      height: 48vh;
      background-size: cover;
      background-position: -12px -22px;
    }
  }
}
</style>
